<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>p42使用第三方类实现动画</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.js"></script>
    <link rel="stylesheet" href="https://unpkg.com/animate.css@3.5.2/animate.min.css">
    
</head>
<body>
        <div id="app">
                <input type="button" value="toggle" @click="flag=!flag">
                    <transition enter-active-class="animated bounceIn" leave-active-class="animated bounceOut" :duration="{enter:200,leave:400}">
                            <h3 v-if="flag">这是第一个h3</h3>
                    </transition>
            </div>
            <script>
            var vm=new Vue({
                el:"#app",
                data:{
                    flag:false,
                },
                methods:{},
                filters:{},
                directives:{}
            })
            </script>
</body>
</html>